package org.clockworkmages.games.anno1186.gui;

import java.awt.CardLayout;

import javax.swing.JPanel;

import org.clockworkmages.games.anno1186.GameBeansContext;
import org.clockworkmages.games.anno1186.GameGuiService;

public class GamePanel
		extends JPanel {

	private LocalExplorationPanel explorationPanel;

	public GamePanel() {
		CardLayout layout = new CardLayout();
		this.setLayout(layout);

		this.setOpaque(false);

		explorationPanel = new LocalExplorationPanel();
		this.add(explorationPanel, GameUiConstants.EXPLORATION_CARD);

		layout.show(this, GameUiConstants.EXPLORATION_CARD);

		GameGuiService gameGuiService = GameBeansContext
				.getBean(GameGuiService.class);
		gameGuiService.setGamePanel(this);
	}

	public LocalExplorationPanel getExplorationPanel() {
		return explorationPanel;
	}

}
